package com.lyd.management.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.time.LocalDateTime;
import java.util.Objects;


public class Board {
    @TableId(type= IdType.ASSIGN_UUID)
    private String textId;
    private LocalDateTime time;
    private String content;

    public String getTextId() {
        return textId;
    }

    public void setTextId(String textId) {
        this.textId = textId;
    }

    public LocalDateTime getTime() {
        return time;
    }

    public void setTime(LocalDateTime time) {
        this.time = time;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Board(String textId, LocalDateTime time, String content) {
        this.textId = textId;
        this.time = time;
        this.content = content;
    }

    public Board() {
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Board board = (Board) o;
        return Objects.equals(textId, board.textId) && Objects.equals(time, board.time) && Objects.equals(content, board.content);
    }

    @Override
    public int hashCode() {
        return Objects.hash(textId, time, content);
    }


}
